package com.ruoyi.dailycheck.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dailycheck.mapper.EasDailycheckMapper;
import com.ruoyi.dailycheck.domain.EasDailycheck;
import com.ruoyi.dailycheck.service.IEasDailycheckService;

/**
 * 设备点检Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-02
 */
@Service
public class EasDailycheckServiceImpl implements IEasDailycheckService 
{
    @Autowired
    private EasDailycheckMapper easDailycheckMapper;

    /**
     * 查询设备点检
     * 
     * @param ID 设备点检主键
     * @return 设备点检
     */
    @Override
    public EasDailycheck selectEasDailycheckByID(String ID)
    {
        return easDailycheckMapper.selectEasDailycheckByID(ID);
    }

    /**
     * 查询设备点检列表
     * 
     * @param easDailycheck 设备点检
     * @return 设备点检
     */
    @Override
    public List<EasDailycheck> selectEasDailycheckList(EasDailycheck easDailycheck)
    {
        return easDailycheckMapper.selectEasDailycheckList(easDailycheck);
    }

    /**
     * 新增设备点检
     * 
     * @param easDailycheck 设备点检
     * @return 结果
     */
    @Override
    public int insertEasDailycheck(EasDailycheck easDailycheck)
    {
        return easDailycheckMapper.insertEasDailycheck(easDailycheck);
    }

    /**
     * 修改设备点检
     * 
     * @param easDailycheck 设备点检
     * @return 结果
     */
    @Override
    public int updateEasDailycheck(EasDailycheck easDailycheck)
    {
        return easDailycheckMapper.updateEasDailycheck(easDailycheck);
    }

    /**
     * 批量删除设备点检
     * 
     * @param IDs 需要删除的设备点检主键
     * @return 结果
     */
    @Override
    public int deleteEasDailycheckByIDs(String[] IDs)
    {
        return easDailycheckMapper.deleteEasDailycheckByIDs(IDs);
    }

    /**
     * 删除设备点检信息
     * 
     * @param ID 设备点检主键
     * @return 结果
     */
    @Override
    public int deleteEasDailycheckByID(String ID)
    {
        return easDailycheckMapper.deleteEasDailycheckByID(ID);
    }
}
